package com.walker.kuyun.util

import android.content.Context
import android.content.SharedPreferences
import com.blankj.utilcode.util.ActivityUtils
import com.walker.kuyun.App

fun Context.sharedPreferences(name: String): SharedPreferences = getSharedPreferences(name, Context.MODE_PRIVATE)
fun SharedPreferences.editor(editorBuilder: SharedPreferences.Editor.() -> Unit) = edit().apply(editorBuilder).apply()

fun String.getSP() = App.getApp().sharedPreferences(this)